package com.pencilisland.pay.mgt.console.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.pencilisland.pay.mgt.console.entity.SysOrg;

public interface OrgRepository extends CrudRepository<SysOrg, Long> {

	List<SysOrg> findByOrgParentOrderByOrgWeightAsc(long parent);

	SysOrg findByOrgNumber(String orgNumber);

	SysOrg findByOrgCode(String string);

}
